home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.modula2
- Path: cix.compulink.co.uk!usenet
- From: mark_tbu@cix.compulink.co.uk ("Mark Morgan Lloyd ")
- Subject: Re: ****HELP POINTER TO A SET *****
- Message-ID: <Dnv3pD.GL2@cix.compulink.co.uk>
- Organization: KDG Mobrey Telemetry
- References: <313DC351.2781E494@zeus.hud.ac.uk>
- Date: Wed, 6 Mar 1996 20:03:13 GMT
- X-News-Software: Ameol
-
- > I need to knoiw how to decode a pointer to a set eg
- > set_ptr = pointer to my_set
- > my_set = (hello,there,how,are,you)
-
- Tidy this up before coming back asking for more help :-)
-
- > How do I decode the set_ptr;-((
-
- The only permissible operations on a pointer are dereference, assignment,
- and comparison for equality/inequality. What are you trying to do?
-
- > How do do and assignment to it;-((
-
- To the pointer or to the entity it is pointing to?
-
- > How do you exit a program in M2. Imean just exit the program totally
- > from anywhere within it???
-
- HALT, but be warned that some implementations treat this as an abnormal
- termination and produce a memory dump or whatever, also don't assume that
- files will be closed properly. The "right" way to do it depends very much
- on what you are trying to do, you are likely to lose marks if you are not
- _very_ careful since some academics consider RETURN and EXIT to be
- equivalent to GOTO and I am sure that they would also have included HALT
- if they could have brought themselves to use the word in public.
-
- Mark Morgan Lloyd
- mark_tbu@cix.compulink.co.uk
-
- [Opinions above are the author's, not those of his employers or
- colleagues]
-